package com.silverbox.waimai.mapper;

import java.util.List;

import com.silverbox.waimai.entity.WaimaiSerialnumber;

public interface WaimaiSerialnumberMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(WaimaiSerialnumber record);

	int insertSelective(WaimaiSerialnumber record);

	WaimaiSerialnumber selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(WaimaiSerialnumber record);

	int updateByPrimaryKey(WaimaiSerialnumber record);

	/**
	 * 根据订单编号查询支付宝待撤销订单记录
	 * 
	 * @param orderNum
	 * @return
	 */
	List<WaimaiSerialnumber> getWaimaiSerialnumberByOrderNum(String orderNum);
	
	/**
	 * 根据第三方交易号删除撤单记录
	 * 
	 * @param outTradeNo
	 * @return
	 */
	int deleteWaimaiSerialNumberByOutTradeNo(String outTradeNo);
}